package com.wn.resopnse;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServerResponse {
	private Integer code;//响应状态码
	private Object content;//响应数据
	private String msg;//响应备注信息

	public ServerResponse(Integer code, Object content) {
		this.code = code;
		this.content = content;
	}

	public ServerResponse(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public ServerResponse(Object content, String msg) {
		this.content = content;
		this.msg = msg;
	}
}
